* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 7 Sep 2012 04:15:56 +0000 (08:15 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 7 Sep 2012 04:15:56 +0000 (08:15 +0400)
commit58bb11fabb70caa0b368590a9017f9c9aeacc707
tree0d8380929e523d4a673bf0e568f65d76a9927ccb
parent44cdbb512ef9ae4487eef83a99bd3e42969b37e4
* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from
ruby-beginning-of-indent, simplify, allow all keywords to have
indentation before them.
(ruby-beginning-of-indent): Adjust for above.  Search until the
found point is not inside a string or comment.
(ruby-font-lock-keywords): Allow symbols to start with "@"
character, give them higher priority than variables.
(ruby-syntax-propertize-function)
(ruby-font-lock-syntactic-keywords): Remove the "not comments"
matchers.  Expression expansions are not comments when inside a
string, and there comment syntax status is irrelevant.
(ruby-match-expression-expansion): New function.  Check that
expression expansion is inside a string, and it's not escaped.
(ruby-font-lock-keywords): Use it.

* test/automated/ruby-mode-tests.el: New tests (Bug#11613).
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el